package ru.papergames.model.proxies
{
	import by.andronix.logger.Logger;
	
	import mx.logging.ILogger;
	
	import org.puremvc.as3.interfaces.IProxy;
	import org.puremvc.as3.patterns.proxy.Proxy;

	public class BaseProxy extends Proxy implements IProxy
	{		
		public function BaseProxy(pName:String, data:Object)
		{
			super(pName, data);
		}

		protected function getProxy(proxyName:String):IProxy {
			return facade.retrieveProxy(proxyName);
		}
		
		protected function get logger():ILogger {
			return Logger.getLogger(this);
		}
		
		override public function onRegister():void {
			super.onRegister();
			logger.debug('onRegister()');
		}
		
		override public function onRemove():void {
			super.onRemove();
			logger.debug('onRemove()');
		}
		
		
	}
}